﻿package mortal.mvc.core
{
    import flash.events.*;

    public class Dispatcher extends Object
    {
        private static var dispatcher:IEventDispatcher = new EventDispatcher();

        public function Dispatcher()
        {
            return;
        }// end function

        public static function addEventListener(param1:String, param2:Function, param3:Boolean = false, param4:int = 0, param5:Boolean = false) : void
        {
            dispatcher.addEventListener(param1, param2, param3, param4, param5);
            return;
        }// end function

        public static function removeEventListener(param1:String, param2:Function, param3:Boolean = false) : void
        {
            dispatcher.removeEventListener(param1, param2, param3);
            return;
        }// end function

        public static function dispatchEvent(event:Event) : Boolean
        {
            return dispatcher.dispatchEvent(event);
        }// end function

        public static function hasEventListener(param1:String) : Boolean
        {
            return dispatcher.hasEventListener(param1);
        }// end function

    }
}
